* {
  box-sizing: border-box;
}

* {
  padding: 0px;
  margin: 0px;
  list-style: none;
}

a {
  color: var(--primary_01);
}

.el-scrollbar__wrap {
  overflow-x: hidden;
}

.el-select-dropdown__wrap {
  overflow-x: scroll;
}

.autoHeight .el-select-dropdown__wrap {
  max-height: inherit;
}
.jy-button--default.no-border {
  border: none !important;
}
.jy-button.default-hover {
  &:hover {
    background: var(--primary_022);
    color: var(--color-text-regular);
  }
}
.jy-tabs__item.is-active {
  font-weight: 600 !important;
}
.jy-dialog {
  box-shadow: 0px 1px 5px 0px rgba(var(--comp_09_rgba_0408), 0.1);
}
.font-01-rgba {
  color: rgba(var(--font_02_rgba), 0.65);
}

.link {
  cursor: pointer;
  color: var(--font_01);
  &:hover {
    color: var(--primary_01);
  }
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-dialog__header {
  padding: 0;
  height: 26px;
  line-height: 26px;
  position: relative;
  display: flex;
  align-items: center;
  // &::after {
  //     content: '';
  //     position: absolute;
  //     bottom: 0;
  //     left: 0;
  //     right: 0;
  //     height: 1px;
  //     background-color: var(--comp_05);
  // }
  .el-dialog__title {
    font-size: 14px;
    padding-left: 16px;
    line-height: 26px;
    color: var(--font_01);
  }
  .el-dialog__headerbtn {
    width: 25px;
    height: 25px;
    top: 0;
    right: 0;
    line-height: 25px;
    &:hover {
      background: var(--icon_05);
      .el-dialog__close {
        color: #fff;
      }
    }
    .el-dialog__close {
      color: var(--font_01);
      font-size: 16px;
    }
  }
}
.el-dialog__body {
  padding: 16px;
  font-size: 12px;
}
.charttool {
  .el-dialog__body {
    padding: 16px 20px;
  }
}
.jsoncas .el-cascader-node__prefix {
  left: 3px;
}

.el-scrollbar__thumb {
  background-color: var(--scroll);
  &:hover {
    background-color: var(--scroll_hover);
  }
  &:active {
    background-color: var(--scroll_active);
  }
}
.size-12 {
  font-size: 12px;
}
.font-01 {
  color: var(--font_01);
}
.font-02 {
  color: var(--font_02);
}
.l-button {
  padding: 0 8px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--comp_01);
  color: var(--font_02);
  font-size: 12px;
  border-radius: 2px;
  cursor: pointer;
  &:hover {
    color: var(--primary_02);
    border-color: var(--primary_02);
  }
}
.l-button-confirm {
  border-color: var(--primary_01);
  background-color: var(--primary_01);
  color: var(--function_white);
  &:hover {
    color: var(--function_white);
    border-color: var(--primary_02);
    background-color: var(--primary_02);
  }
}

.blue {
  color: var(--font_09);
}
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.flex-column {
  flex-direction: column;
}
.ju-center {
  justify-content: center;
}
.ju-end {
  justify-content: flex-end;
}
.ju-betw {
  justify-content: space-between;
}
.al-center {
  align-items: center;
}
.link {
  color: var(--primary_01);
}
.l-btn {
  display: flex;
  height: 22px;
  padding: 2px 8px;
  border-radius: 4px;
  border: none;
  &:focus {
    background-color: transparent;
    color: rgba(var(--font_02_rgba), 0.65);
  }
  &:hover {
    background-color: var(--primary_022);
    color: var(--color-text-regular);
  }
  &:active {
    background-color: var(--primary_033_0325);
  }
}
.border-line {
  border: 1px solid rgba(var(--font_02_rgba), 0.07);
  border-radius: 4px;
}
.hover-btn {
  display: flex;
  border-radius: 4px;
  &:hover {
    background-color: var(--primary_022);
    color: var(--color-text-regular);
  }
}

@mixin flexAJ($align: center, $just: center) {
  display: flex;
  align-items: $align;
  justify-content: $just;
}

@mixin flexA($align: center) {
  display: flex;
  align-items: $align;
}

@mixin flexJ($just: center) {
  display: flex;
  justify-content: $just;
}

@mixin scrollbar($width: 7px, $height: 7px) {
  div::-webkit-scrollbar {
    width: $width;
    height: $height;
  }
  /*滚动条的轨道*/
  div::-webkit-scrollbar-track {
    background-color: transparent;
  }
  /*滚动条里面的小方块，能向上向下移动*/
  div::-webkit-scrollbar-thumb {
    background-color: var(--scroll);
    border-radius: 4px;
  }
  div::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll_hover);
  }
  div::-webkit-scrollbar-thumb:active {
    background-color: var(--scroll_active);
  }
  /*边角，即两个滚动条的交汇处*/
  div::-webkit-scrollbar-corner {
    background-color: transparent;
  }
}
/*滚动条整体部分*/

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/*滚动条的轨道*/

::-webkit-scrollbar-track {
  background-color: transparent;
  width: 8px;
  height: 8px;
}

/*滚动条里面的滑块，能向上向下移动*/

::-webkit-scrollbar-thumb {
  background-color: var(--scroll);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll_hover);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--scroll_active);
}

/*边角，即两个滚动条的交汇处*/

::-webkit-scrollbar-corner {
  background-color: transparent;
}

/*滚动条整体部分*/
div[calheight="bottom/calc/2/tab"],
div[calheight="bottom/calc/2"] {
  .chartWarp {
    padding: 0 !important;
  }
}
div,
textarea {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &.nativeScroll,
  &.jy-table--body-wrapper,
  &.el-table__body-wrapper {
    &::-webkit-scrollbar-thumb {
      transition: background-color 0.2s ease-in;
      background-color: transparent;
    }
    &:hover {
      &::-webkit-scrollbar-thumb {
        background-color: var(--scroll);
      }
    }
    &::-webkit-scrollbar-thumb:hover {
      background-color: var(--scroll_hover);
    }

    &::-webkit-scrollbar-thumb:active {
      background-color: var(--scroll_active);
    }
  }

  /*滚动条的轨道*/

  &::-webkit-scrollbar-track {
    background-color: transparent;
    width: 8px;
    height: 8px;
    z-index: 10000;
  }

  /*滚动条里面的滑块，能向上向下移动*/

  &::-webkit-scrollbar-thumb {
    // background-color: var(--scroll);
    border-radius: 6px;
    z-index: 100;
  }

  &::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll_hover);
  }

  &::-webkit-scrollbar-thumb:active {
    background-color: var(--scroll_active);
  }

  /*边角，即两个滚动条的交汇处*/

  &::-webkit-scrollbar-corner {
    background-color: transparent;
  }
}

.macro {
  margin-top: 10vh !important;
  .el-input__inner {
    border-radius: 2px;
    height: 28px !important;
    line-height: 28px;
    font-size: var(--size_12);
  }
  .el-select + .el-input {
    margin-left: 10px;
  }
  .fc_item_d:nth-of-type(1) {
    button {
      margin-left: 10px;
    }
  }
  .el-button {
    border-radius: 2px;
    background-color: var(--primary_01);
    height: 22px;
    line-height: 21px;
    font-size: var(--size_12);
    padding: 0 8px;
    border: 1px solid var(--primary_01);
    color: var(--function_white);
    &:hover {
      color: var(--function_white);
    }
    &.default {
      background-color: var(--comp_01);
      border-color: var(--comp_02);
      color: var(--font_02);
      &:hover {
        color: var(--font_02);
      }
    }
  }
}
.macro-increase {
  color: var(--function_01);
}
.macro-decrease {
  color: var(--function_02);
}
// .vxe-loading .vxe-loading--spinner {
//     width: 38px !important;
//     height: 38px !important;
// }
.vxe-loading--spinner {
  &::before,
  &::after {
    background-color: var(--primary_01) !important;
  }
}
/*.vxe-loading--spinner {
	&::before,
	&::after {
		animation: none;
		display: none;
	}
	width: 128px !important;
	height: 84px !important;
	background-image: url('');
	background-repeat: no-repeat;
	background-size: 100% 100%;
}*/
